
import request from '@/utils/request';
import qs from 'qs';
// 预警管理

// 新增 编辑 预警配置
export function alarmConfig(cmd,query) {
    return request({
      url: '/alarm/config/'+ cmd,
      method: 'POST',
      data: query
    });
  }

// 告警配置列表
export function getAlarmConfigList(query) {
  return request({
    url: '/alarm/config/page',
    method: 'GET',
    params: query
  });
}

// 告警配置详情
export function getAlarmConfigDetail(query) {
  return request({
    url: '/alarm/config/detail',
    method: 'GET',
    params: query
  });
}

// 删除预警配置
export function deleteAlarmConfig(query) {
  return request({
    url: '/alarm/config/delete',
    method: 'POST',
    data: query
  });
}

// 预警配置 post
export function apiAlarmConfig(cmd ,query) {
  return request({
    url: '/alarm/config/'+ cmd,
    method: 'POST',
    data: query
  });
}

// 告警配置列表详情
export function getAlarmConfig(cmd, query) {
  return request({
    url: '/alarm/config/record/' + cmd,
    method: 'GET',
    params: query
  });
}

// 告警统计
export function getAlarmStatistical(cmd, query) {
  return request({
    url: '/alarm/config/record/statistical/' + cmd,
    method: 'GET',
    params: query
  });
}




